{extend name="common/main"}

{block name="css"}
<!-- 本页面需要额外添加的css请在此处添加 -->
<link rel="stylesheet" href="/mobiled/css/user.css">
<script type="text/javascript" src="/mobiled/js/mobile.js" ></script>

{/block}

{block name="body"}
<div>
<header>
    <div class="tab_nav">
        <div class="header" style="background: #F6F6F6;">
            <div class="h-left"><a class="sb-back" href="{:url('User/index')}" title="返回"></a></div>
            <div class="h-mid">地址管理</div>
            <div class="h-right">
                <aside class="top_bar">
                    <div onClick="show_menu();$('#close_btn').addClass('hid');" id="show_more"><a href="javascript:;"></a> </div>
                </aside>
            </div>
        </div>
    </div>
</header>
{include file="common/goods_nav"/}

<div id="tbh5v0">

    {notempty name='list'}
    {volist name='lists' id='vo'}


    <div class="address_add   {if condition="$vo.is_default eq 1"} Default{/if}">
    {if condition="input('source') eq 'cart2'"}

    <a href="{:Url('Classify/ordercon',array('address_id'=>$vo['address_id']))}">
        {if condition="$vo.is_default eq 1"}<h2><img src="/mobiled/images/right.png"></h2>{/if}
        <dl>
            <dt><span>{$vo.consignee}</span><em>电话:{$vo.mobile}</em></dt>
            <dd>{$vo.region}{$vo.address}</dd>

        </dl>
    </a>
</div>
    {else/}
    {if condition="$vo.is_default eq 1"}<h2><img src="/mobiled/images/right.png"></h2>{/if}
    <dl>
        <dt><span>{$vo.consignee}</span><em>电话:{$vo.mobile}</em></dt>
        <dd>{$vo.region}{$vo.address}</dd>

    </dl>
    {/if}
    <a href="{:Url('add_skip')}?address_id={$vo.address_id}"><img id="amend" src="/mobiled/images/amend.png"/></a>
</div>
    {/volist}
    {/notempty}
</div>

<div style=" width:100%; height:50px;"></div>
<div class="list_footer">
    <a href="{:Url('add_skip')}">添加新地址</a>
</div>

<script>
    function goTop(){
        $('html,body').animate({'scrollTop':0},600);
    }
</script>
<a href="javascript:goTop();" class="gotop"><img src="/mobiled/images/topup.png"></a>
</div>


</body>
{/block}

{block name="js"}
<!-- 本页面需要额外添加的js请在此处添加 -->
<!--<script src="https://g.alicdn.com/aliww/ww/json/json.js" charset="utf-8"></script>-->

{/block}

